package com.example.simple_cheat;

import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;
import android.view.animation.LinearInterpolator;

import org.litepal.tablemanager.Connector;

import java.util.ArrayList;
import java.util.List;

public class friends extends AppCompatActivity {
    List<friendsdetail> F_list = new ArrayList<>();
    private void initfriends(){
        for(int i = 0;i<6;++i){
            friendsdetail t1 = new friendsdetail("wzh",R.drawable.friendpic1);
            friendsdetail t2 = new friendsdetail("woodx",R.drawable.friendpic1);
            F_list.add(t1);
            F_list.add(t2);
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_friends);
        ActionBar acbar = getSupportActionBar();
        if(acbar!=null){
            acbar.hide();
        }
        initfriends();
        RecyclerView recyclerView = (RecyclerView)findViewById(R.id.rec_2);
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
        recyclerView.setLayoutManager(linearLayoutManager);
        friendsAdapter adapter = new friendsAdapter(friends.this,F_list);
        recyclerView.setAdapter(adapter);

    }
}